/**
 * 
 */
package org.softTank.schema.bean;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.namespace.QName;

import org.softTank.wsdlParser.bean.BaseElement;

/**
 * @author Yuzone
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "element")
public class Element extends BaseElement {

	@XmlAttribute(name = "minOccurs")
	private long minOccurs;
	@XmlAttribute(name = "nillable")
	private Boolean nillable;
	@XmlAttribute(name = "type")
	private QName type;
	@XmlElement(name = "complexType", namespace = "http://www.w3.org/2001/XMLSchema")
	private ComplexType complexType;
	@XmlElement(name = "simpleType", namespace = "http://www.w3.org/2001/XMLSchema")
	private SimpleType simpleType;

	public long getMinOccurs() {
		return minOccurs;
	}

	public void setMinOccurs(long minOccurs) {
		this.minOccurs = minOccurs;
	}

	public Boolean isNillable() {
		return nillable;
	}

	public void setNillable(Boolean nillable) {
		this.nillable = nillable;
	}

	public QName getType() {
		return type;
	}

	public void setType(QName type) {
		this.type = type;
	}

	public ComplexType getComplexType() {
		return complexType;
	}

	public void setComplexType(ComplexType complexType) {
		this.complexType = complexType;
	}

	public SimpleType getSimpleType() {
		return simpleType;
	}

	public void setSimpleType(SimpleType simpleType) {
		this.simpleType = simpleType;
	}
}
